package com.swt.gap.dao;

import com.swt.gap.model.entity.OntologyRelationshipProperty;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OntologyRelationshipPropertyMapper {
    int deleteByPrimaryKey(Integer propertyId);

    int insertSelective(OntologyRelationshipProperty record);

    OntologyRelationshipProperty selectByPrimaryKey(Integer propertyId);

    int updateByPrimaryKeySelective(OntologyRelationshipProperty record);

    List<OntologyRelationshipProperty> selectByRelationshipId(Integer relationshipId);

    int deleteByRelationshipId(Integer relationshipId);

    OntologyRelationshipProperty selectSameKey(@Param("propertyKey") String propertyKey, @Param("relationshipId") Integer relationshipId);

    List<String> listCountPropertiesByRelationshipId(Integer relationshipId);
}